BoxPointer's API changed to take a BoxPointer.PopupAnimation
enumeration value, but the code was accidentally replaced with
older code when porting the PopupMenuManager code to GrabHelper.
https://bugzilla.gnome.org/show_bug.cgi?id=689954
},
_changeMenu: function(newMenu) {
- if (this.activeMenu) {
- this._closeMenu(this.activeMenu);
- newMenu.open(false);
+ let oldMenu = this.activeMenu;
+ if (oldMenu) {
+ oldMenu.close(BoxPointer.PopupAnimation.FADE);
+ newMenu.open(BoxPointer.PopupAnimation.FADE);
} else {
- newMenu.open(true);
+ newMenu.open(BoxPointer.PopupAnimation.FULL);
}
},